/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.feiyue.helper;

import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import com.feiyue.basic.server.net.NovelInfo;
import com.feiyue.basic.server.parser.Chapter;
import java.util.List;

public class Thread2getchapterlist extends Thread {
	private int bookid;
	private int categoryid;
	private List<Chapter> chapterlist;
	private Context context;
	private Handler handler;
	private String howdo;
	private Runnable2chapterlist runnable2chapterlist;

	public Thread2getchapterlist(Context paramContext, int paramInt1,
			int paramInt2, Runnable2chapterlist paramRunnable2chapterlist,
			Handler paramHandler, String paramString) {
		this.context = paramContext;
		this.categoryid = paramInt2;
		this.bookid = paramInt1;
		this.runnable2chapterlist = paramRunnable2chapterlist;
		this.handler = paramHandler;
		this.howdo = paramString;
	}

	public void run() {
		this.chapterlist = NovelInfo.getChapterList(this.context,
				NovelInfo.getUrl2Chapterlist(this.bookid), this.categoryid,
				this.bookid, this.howdo, this.handler);
		this.runnable2chapterlist.set(this.chapterlist);
		Intent localIntent = new Intent("CatologUpdate");
		localIntent.putExtra("BookID", this.bookid);
		this.context.sendBroadcast(localIntent);
		super.run();
	}
}